/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2023. All rights reserved.
 */

package com.huawei.aiservice.base;

import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.http.server.reactive.ServerHttpResponse;
import reactor.core.publisher.Mono;

/**
 * 跳转登录
 *
 * @since 2023/10/26 19:20
 */
public abstract class Login {
    /**
     * 跳转登录
     *
     * @param request 请求
     * @param response 响应
     * @return Mono<Void> 过滤器链
     */
    public abstract Mono<Void> toLogin(ServerHttpRequest request, ServerHttpResponse response);

    /**
     * 登录认证
     *
     * @param request 请求
     * @param response 响应
     * @return Mono<Void> 过滤器链
     */
    public abstract Mono<Void> auth(ServerHttpRequest request, ServerHttpResponse response);
}
